// store.js
import { defineStore } from 'pinia';

export const useStore = defineStore('main', {
  state: () => ({
    spinning: false,
    overlays: []
  }),
  actions: {
    toggleSpinning(newData) {
      this.spinning = newData;
    },
    setoverlays(val) {
      this.overlays = val;
    },
    getoverlays() {
      return this.overlays;
    }
  }
});
